Release 10.1A: OpenEdge Development:
Messaging and ESB


publish procedure

Publishes a message to a topic.

Syntax

PROCEDURE publish. 
DEFINE INPUT PARAMETER topicName AS CHARACTER.  
DEFINE INPUT PARAMETER message AS HANDLE.  
DEFINE INPUT PARAMETER priority AS INTEGER.  
DEFINE INPUT PARAMETER timeToLive AS DECIMAL.  
DEFINE INPUT PARAMETER deliveryMode AS CHARACTER.  

Parameters

topicName

The topic to which the message is published. If the publication is in reply to a received message, topicName can be the ReplyTo field obtained from the original message.

message

The Message object.

priority

The message priority (optional): 0–9. Session default is used if UNKNOWN.

timeToLive

Time to live, in milliseconds (optional). Session default is used if UNKNOWN.

deliveryMode

The delivery mode (optional): PERSISTENT, NON_PERSISTENT, NON_PERSISTENT_ASYNC, DISCARDABLE, or UNKNOWN (?). Session default is used if UNKNOWN.

Applies to

Session objects

Notes

See also

cancelDurableSubscription procedure, publish procedure, subscribe procedure

For more information, see the "Publishing messages to a topic" section, the "Subscribing to a topic" section, the "Durable subscriptions" section, and the "Methods unique to Pub/Sub messaging" section.

For an example, see the "Pub/Sub messaging example" section.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095